<template>
  <div class="reportFormPage">
    <div class="report-dom">
      <el-row>
        <el-col :span="5" :offset="19">
          <div class="pageNumBox">
            <span>第</span>
            <span class="placeholder-min text-center">&nbsp;{{ form.page }}&nbsp;</span>
            <span>页，共</span>
            <span class="placeholder-min text-center">&nbsp;{{ form.totalPage }}&nbsp;</span>
            <span>页</span>
          </div>
        </el-col>
      </el-row>
      <div class="topTwoBox">
        <div class="centerName">土承载比（CBR）试验检测记录表(一)</div>
        <div class="codeText">
          <tr>
            JGLQ01008
          </tr>
        </div>
      </div>
      <div class="threeTopBox">
        <div class="left-border">
          <div class="box-title">检测单位名称：</div>
          <div class>{{ form.jiancdwmc }}</div>
        </div>
        <div class="right-border">
          <span>记录编号：</span>
          <span class="placeholder">{{ form.jilbh }}</span>
        </div>
      </div>
      <div class="table-border">
        <!-- .........................1111111111111111111111111111111......................................................... -->
        <table height="220px" class="top-table" align="center">
          <tbody>
            <tr>
              <td height="30" align="center" width="15%">
                <span style="width: 90px; display: inline-block">工程名称</span>
              </td>
              <td width="35%" class="text-center">
                <span>{{ form.gongcmc }}</span>
              </td>
              <td align="center" width="15%">
                <span style="width: 90px; display: inline-block">工程部位/用途</span>
              </td>
              <td width="35%" class="text-center">
                <span>{{ form.gongcbwyt }}</span>
              </td>
            </tr>
            <tr>
              <td height="50" align="center">样品信息</td>
              <td class="specimen-border" colspan="3">
                <span>样品名称：</span>
                <span :class="{ placeholder: !form.yangpmc }">{{ form.yangpmc }}</span>
                <span>；样品编号：</span>
                <span :class="{ 'placeholder-long': !form.yangpbh }">{{ form.yangpbh }}</span>

                <span>；样品数量：</span>
                <span :class="{ placeholder: !form.yangpsl }">{{ form.yangpsl }}</span>
                <span>；样品状态：</span>
                <span :class="{ placeholder: !form.yangpzt }">{{ form.yangpzt }}</span>
                <span>；来样时间：</span>
                <span :class="{ placeholder: !form.yangpsj }">{{ form.yangpsj }}</span>
              </td>
            </tr>

            <tr>
              <td height="25" align="center" width="15%">
                <span style="width: 90px; display: inline-block">试验检测日期</span>
              </td>
              <!-- <td width="35%" class="text-center">{{ form.shiyjcrq }}</td> -->
              <td width="35%" class="text-center">
                <el-input v-model="form.shiyjcrq" />
              </td>
              <td align="center" width="15%">
                <span style="width: 90px; display: inline-block">试验条件</span>
              </td>
              <td v-if="isPdf" width="35%">
                温度：
                <span style="display: inline-block; width: 10%">{{ form.shiytjwd }}</span>
                ℃；湿度：
                <span style="display: inline-block; width: 10%">{{ form.shiytjsd }}</span>%RH
              </td>
              <td v-else width="35%">
                温度：
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.shiytjwd" class="height100"
                  style="width: 15%" />℃；湿度：
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.shiytjsd" class="height100"
                  style="width: 15%" />%RH
              </td>
            </tr>

            <tr>
              <td height="50" align="center" width="15%">
                <span style="width: 90px; display: inline-block">检测依据</span>
              </td>
              <td width="35%">
                <span v-if="isPdf">{{ form.jiancyj }}</span>
                <el-input v-else type="textarea" v-model="form.jiancyj" :rows="2" class="mark"
                  @dblclick.native="showBsJiancyjView" readonly />
              </td>
              <td align="center" width="15%">
                <span style="width: 90px; display: inline-block">判定依据</span>
              </td>
              <td width="35%">
                <span v-if="isPdf">{{ form.pandyj }}</span>
                <el-input v-else type="textarea" v-model="form.pandyj" :rows="2" @dblclick.native="showBsJudgeBaseView"
                  @focus="handleFocus('pandyj')" class="mark" />
              </td>
            </tr>
            <tr class="bottom-border">
              <td height="50" align="center">
                <div>主要仪器设备</div>
                <div>名称及编号</div>
              </td>
              <td colspan="3">
                <span v-if="isPdf">{{ form.zhuyyqsbmcjbh }}</span>
                <el-input v-else type="textarea" :rows="2" v-model="form.zhuyyqsbmcjbh" class="height100 width100 mark"
                  @dblclick.native="showBsInstrumentView" readonly></el-input>
              </td>
            </tr>
          </tbody>
        </table>
        <!-- .................................22222222222222222222222222222222............................................... -->
        <table height="616px" class="middle-table">
          <tbody>
            <!--        膨胀量-->
            <tr trindex="0">
              <td colspan="1" class="td1" rowspan="7">
                膨
                <br />胀 <br />量
              </td>
              <td colspan="4" class="td4" rowspan="1">击实次数</td>
              <td colspan="3" class="td3" rowspan="1">30</td>
              <td colspan="3" class="td3" rowspan="1">50</td>
              <td colspan="3" class="td3" rowspan="1">98</td>
            </tr>
            <tr trindex="1">
              <td colspan="4" class="td4" rowspan="1">试样编号</td>
              <td colspan="1" class="td1" rowspan="1">1</td>
              <td colspan="1" class="td1" rowspan="1">2</td>
              <td colspan="1" class="td1" rowspan="1">3</td>
              <td colspan="1" class="td1" rowspan="1">1</td>
              <td colspan="1" class="td1" rowspan="1">2</td>
              <td colspan="1" class="td1" rowspan="1">3</td>
              <td colspan="1" class="td1" rowspan="1">1</td>
              <td colspan="1" class="td1" rowspan="1">2</td>
              <td colspan="1" class="td1" rowspan="1">3</td>
            </tr>
            <tr trindex="2">
              <td colspan="4" class="td4" rowspan="1">筒号</td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[0].tongh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('0', 'tong')" readonly />
              </td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[1].tongh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('1', 'tong')" readonly />
              </td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[2].tongh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('2', 'tong')" readonly />
              </td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[3].tongh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('3', 'tong')" readonly />
              </td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[4].tongh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('4', 'tong')" readonly />
              </td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[5].tongh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('5', 'tong')" readonly />
              </td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[6].tongh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('6', 'tong')" readonly />
              </td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[7].tongh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('7', 'tong')" readonly />
              </td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[8].tongh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('8', 'tong')" readonly />
              </td>
            </tr>
            <tr trindex="3">
              <td colspan="4" class="td4" rowspan="1">泡水前试件高度(mm)</td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[0].paosqsjgd"
                  @change="calculatePengzl('0')" @keydown.native="handleKeyDown($event, 0, 0)" :ref="'0_0'"
                  @paste.native="handlePaste($event, 0, 0)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[1].paosqsjgd"
                  @change="calculatePengzl('1')" @keydown.native="handleKeyDown($event, 0, 1)" :ref="'0_1'"
                  @paste.native="handlePaste($event, 0, 1)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[2].paosqsjgd"
                  @change="calculatePengzl('2')" @keydown.native="handleKeyDown($event, 0, 2)" :ref="'0_2'"
                  @paste.native="handlePaste($event, 0, 2)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[3].paosqsjgd"
                  @change="calculatePengzl('3')" @keydown.native="handleKeyDown($event, 0, 3)" :ref="'0_3'"
                  @paste.native="handlePaste($event, 0, 3)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[4].paosqsjgd"
                  @change="calculatePengzl('4')" @keydown.native="handleKeyDown($event, 0, 4)" :ref="'0_4'"
                  @paste.native="handlePaste($event, 0, 4)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[5].paosqsjgd"
                  @change="calculatePengzl('5')" @keydown.native="handleKeyDown($event, 0, 5)" :ref="'0_5'"
                  @paste.native="handlePaste($event, 0, 5)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[6].paosqsjgd"
                  @change="calculatePengzl('6')" @keydown.native="handleKeyDown($event, 0, 6)" :ref="'0_6'"
                  @paste.native="handlePaste($event, 0, 6)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[7].paosqsjgd"
                  @change="calculatePengzl('7')" @keydown.native="handleKeyDown($event, 0, 7)" :ref="'0_7'"
                  @paste.native="handlePaste($event, 0, 7)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[8].paosqsjgd"
                  @change="calculatePengzl('8')" @keydown.native="handleKeyDown($event, 0, 8)" :ref="'0_8'"
                  @paste.native="handlePaste($event, 0, 8)" />
              </td>
            </tr>
            <tr trindex="4">
              <td colspan="4" class="td4" rowspan="1">泡水后试件高度 (mm)</td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[0].paoshsjgd"
                  @change="calculatePengzl('0')" @keydown.native="handleKeyDown($event, 1, 0)" :ref="'1_0'"
                  @paste.native="handlePaste($event, 1, 0)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[1].paoshsjgd"
                  @change="calculatePengzl('1')" @keydown.native="handleKeyDown($event, 1, 1)" :ref="'1_1'"
                  @paste.native="handlePaste($event, 1, 1)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[2].paoshsjgd"
                  @change="calculatePengzl('2')" @keydown.native="handleKeyDown($event, 1, 2)" :ref="'1_2'"
                  @paste.native="handlePaste($event, 1, 2)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[3].paoshsjgd"
                  @change="calculatePengzl('3')" @keydown.native="handleKeyDown($event, 1, 3)" :ref="'1_3'"
                  @paste.native="handlePaste($event, 1, 3)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[4].paoshsjgd"
                  @change="calculatePengzl('4')" @keydown.native="handleKeyDown($event, 1, 4)" :ref="'1_4'"
                  @paste.native="handlePaste($event, 1, 4)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[5].paoshsjgd"
                  @change="calculatePengzl('5')" @keydown.native="handleKeyDown($event, 1, 5)" :ref="'1_5'"
                  @paste.native="handlePaste($event, 1, 5)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[6].paoshsjgd"
                  @change="calculatePengzl('6')" @keydown.native="handleKeyDown($event, 1, 6)" :ref="'1_6'"
                  @paste.native="handlePaste($event, 1, 6)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[7].paoshsjgd"
                  @change="calculatePengzl('7')" @keydown.native="handleKeyDown($event, 1, 7)" :ref="'1_7'"
                  @paste.native="handlePaste($event, 1, 7)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[8].paoshsjgd"
                  @change="calculatePengzl('8')" @keydown.native="handleKeyDown($event, 1, 8)" :ref="'1_8'"
                  @paste.native="handlePaste($event, 1, 8)" />
              </td>
            </tr>
            <tr trindex="5">
              <td colspan="4" class="td4" rowspan="1">膨胀量 (%)</td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[0].pengzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[1].pengzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[2].pengzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[3].pengzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[4].pengzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[5].pengzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[6].pengzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[7].pengzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[8].pengzl" disabled />
              </td>
            </tr>
            <tr trindex="6">
              <td colspan="4" class="td4" rowspan="1">膨胀平均值 (%)</td>
              <td colspan="3" class="td3">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.pengzpjz30" disabled />
              </td>
              <td colspan="3" class="td3">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.pengzpjz50" disabled />
              </td>
              <td colspan="3" class="td3">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.pengzpjz98" disabled />
              </td>
            </tr>

            <!--        密度-->
            <tr trindex="7">
              <td colspan="1" class="td1" rowspan="7">
                密
                <br />度
              </td>
              <td colspan="4" class="td4" rowspan="1">筒质量(g)</td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[0].tongzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[1].tongzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[2].tongzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[3].tongzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[4].tongzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[5].tongzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[6].tongzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[7].tongzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[8].tongzl" disabled />
              </td>
            </tr>
            <tr trindex="8">
              <td colspan="4" class="td4" rowspan="1">筒+试件质量(g)</td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[0].tongjsjzl"
                  @change="tongjsjzlChange('0')" @keydown.native="handleKeyDown($event, 2, 0)" :ref="'2_0'"
                  @paste.native="handlePaste($event, 2, 0)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[1].tongjsjzl"
                  @change="tongjsjzlChange('1')" @keydown.native="handleKeyDown($event, 2, 1)" :ref="'2_1'"
                  @paste.native="handlePaste($event, 2, 1)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[2].tongjsjzl"
                  @change="tongjsjzlChange('2')" @keydown.native="handleKeyDown($event, 2, 2)" :ref="'2_2'"
                  @paste.native="handlePaste($event, 2, 2)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[3].tongjsjzl"
                  @change="tongjsjzlChange('3')" @keydown.native="handleKeyDown($event, 2, 3)" :ref="'2_3'"
                  @paste.native="handlePaste($event, 2, 3)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[4].tongjsjzl"
                  @change="tongjsjzlChange('4')" @keydown.native="handleKeyDown($event, 2, 4)" :ref="'2_4'"
                  @paste.native="handlePaste($event, 2, 4)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[5].tongjsjzl"
                  @change="tongjsjzlChange('5')" @keydown.native="handleKeyDown($event, 2, 5)" :ref="'2_5'"
                  @paste.native="handlePaste($event, 2, 5)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[6].tongjsjzl"
                  @change="tongjsjzlChange('6')" @keydown.native="handleKeyDown($event, 2, 6)" :ref="'2_6'"
                  @paste.native="handlePaste($event, 2, 6)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[7].tongjsjzl"
                  @change="tongjsjzlChange('7')" @keydown.native="handleKeyDown($event, 2, 7)" :ref="'2_7'"
                  @paste.native="handlePaste($event, 2, 7)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[8].tongjsjzl"
                  @change="tongjsjzlChange('8')" @keydown.native="handleKeyDown($event, 2, 8)" :ref="'2_8'"
                  @paste.native="handlePaste($event, 2, 8)" />
              </td>
            </tr>
            <tr trindex="9">
              <td colspan="4" class="td4" rowspan="1">筒体积(cm3)</td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[0].tongtj"
                  @blur="calculateShimd('0')" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[1].tongtj"
                  @blur="calculateShimd('1')" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[2].tongtj"
                  @blur="calculateShimd('2')" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[3].tongtj"
                  @blur="calculateShimd('3')" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[4].tongtj"
                  @blur="calculateShimd('4')" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[5].tongtj"
                  @blur="calculateShimd('5')" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[6].tongtj"
                  @blur="calculateShimd('6')" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[7].tongtj"
                  @blur="calculateShimd('7')" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[8].tongtj"
                  @blur="calculateShimd('8')" disabled />
              </td>
            </tr>
            <tr trindex="10">
              <td colspan="4" class="td4" rowspan="1">湿密度(g/cm3)</td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[0].shimd" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[1].shimd" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[2].shimd" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[3].shimd" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[4].shimd" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[5].shimd" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[6].shimd" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[7].shimd" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[8].shimd" disabled />
              </td>
            </tr>
            <tr trindex="11">
              <td colspan="4" class="td4" rowspan="1">含水率 (%)</td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[0].hansl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[1].hansl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[2].hansl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[3].hansl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[4].hansl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[5].hansl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[6].hansl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[7].hansl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[8].hansl" disabled />
              </td>
            </tr>
            <tr trindex="12">
              <td colspan="4" class="td4" rowspan="1">干密度 (g/cm3)</td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[0].ganmd" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[1].ganmd" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[2].ganmd" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[3].ganmd" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[4].ganmd" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[5].ganmd" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[6].ganmd" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[7].ganmd" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[8].ganmd" disabled />
              </td>
            </tr>
            <tr trindex="13">
              <td colspan="4" class="td4" rowspan="1">干密度平均值 (g/cm3)</td>
              <td colspan="3" class="td3">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.ganmdpjz30" disabled />
              </td>
              <td colspan="3" class="td3">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.ganmdpjz50" disabled />
              </td>
              <td colspan="3" class="td3">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.ganmdpjz98" disabled />
              </td>
            </tr>

            <!--        含水率-->
            <!-- <tr trindex="14">
              <td colspan="1" class="td1" rowspan="7">
                含
                <br />水 <br />率
              </td>
              <td colspan="4" class="td4" rowspan="1">盒号</td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[0].heh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('0')" readonly />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[1].heh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('1')" readonly />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[2].heh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('2')" readonly />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[3].heh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('3')" readonly />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[4].heh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('4')" readonly />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[5].heh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('5')" readonly />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[6].heh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('6')" readonly />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[7].heh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('7')" readonly />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[8].heh" class="pointer mark"
                  @dblclick.native="showBaQjDetailView('8')" readonly />
              </td>
            </tr>
            <tr trindex="15">
              <td colspan="4" class="td4" rowspan="1">盒质量(g)</td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[0].hezl"
                  @keydown.native="handleKeyDown($event, 3, 0)" :ref="'3_0'"
                  @paste.native="handlePaste($event, 3, 0)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[1].hezl"
                  @keydown.native="handleKeyDown($event, 3, 1)" :ref="'3_1'"
                  @paste.native="handlePaste($event, 3, 1)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[2].hezl"
                  @keydown.native="handleKeyDown($event, 3, 2)" :ref="'3_2'"
                  @paste.native="handlePaste($event, 3, 2)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[3].hezl"
                  @keydown.native="handleKeyDown($event, 3, 3)" :ref="'3_3'"
                  @paste.native="handlePaste($event, 3, 3)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[4].hezl"
                  @keydown.native="handleKeyDown($event, 3, 4)" :ref="'3_4'"
                  @paste.native="handlePaste($event, 3, 4)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[5].hezl"
                  @keydown.native="handleKeyDown($event, 3, 5)" :ref="'3_5'"
                  @paste.native="handlePaste($event, 3, 5)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[6].hezl"
                  @keydown.native="handleKeyDown($event, 3, 6)" :ref="'3_6'"
                  @paste.native="handlePaste($event, 3, 6)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[7].hezl"
                  @keydown.native="handleKeyDown($event, 3, 7)" :ref="'3_7'"
                  @paste.native="handlePaste($event, 3, 7)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[8].hezl"
                  @keydown.native="handleKeyDown($event, 3, 8)" :ref="'3_8'"
                  @paste.native="handlePaste($event, 3, 8)" />
              </td>
            </tr>
            <tr trindex="16">
              <td colspan="4" class="td4" rowspan="1">盒+湿土质量(g)</td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[0].hejstzl"
                  @change="calculateHansl('0')" @keydown.native="handleKeyDown($event, 4, 0)" :ref="'4_0'"
                  @paste.native="handlePaste($event, 4, 0)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[1].hejstzl"
                  @change="calculateHansl('1')" @keydown.native="handleKeyDown($event, 4, 1)" :ref="'4_1'"
                  @paste.native="handlePaste($event, 4, 1)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[2].hejstzl"
                  @change="calculateHansl('2')" @keydown.native="handleKeyDown($event, 4, 2)" :ref="'4_2'"
                  @paste.native="handlePaste($event, 4, 2)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[3].hejstzl"
                  @change="calculateHansl('3')" @keydown.native="handleKeyDown($event, 4, 3)" :ref="'4_3'"
                  @paste.native="handlePaste($event, 4, 3)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[4].hejstzl"
                  @change="calculateHansl('4')" @keydown.native="handleKeyDown($event, 4, 4)" :ref="'4_4'"
                  @paste.native="handlePaste($event, 4, 4)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[5].hejstzl"
                  @change="calculateHansl('5')" @keydown.native="handleKeyDown($event, 4, 5)" :ref="'4_5'"
                  @paste.native="handlePaste($event, 4, 5)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[6].hejstzl"
                  @change="calculateHansl('6')" @keydown.native="handleKeyDown($event, 4, 6)" :ref="'4_6'"
                  @paste.native="handlePaste($event, 4, 6)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[7].hejstzl"
                  @change="calculateHansl('7')" @keydown.native="handleKeyDown($event, 4, 7)" :ref="'4_7'"
                  @paste.native="handlePaste($event, 4, 7)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[8].hejstzl"
                  @change="calculateHansl('8')" @keydown.native="handleKeyDown($event, 4, 8)" :ref="'4_8'"
                  @paste.native="handlePaste($event, 4, 8)" />
              </td>
            </tr>
            <tr trindex="17">
              <td colspan="4" class="td4" rowspan="1">盒+干土质量(g)</td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[0].hejgtzl"
                  @change="calculateHansl('0')" @keydown.native="handleKeyDown($event, 5, 0)" :ref="'5_0'"
                  @paste.native="handlePaste($event, 5, 0)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[1].hejgtzl"
                  @change="calculateHansl('1')" @keydown.native="handleKeyDown($event, 5, 1)" :ref="'5_1'"
                  @paste.native="handlePaste($event, 5, 1)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[2].hejgtzl"
                  @change="calculateHansl('2')" @keydown.native="handleKeyDown($event, 5, 2)" :ref="'5_2'"
                  @paste.native="handlePaste($event, 5, 2)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[3].hejgtzl"
                  @change="calculateHansl('3')" @keydown.native="handleKeyDown($event, 5, 3)" :ref="'5_3'"
                  @paste.native="handlePaste($event, 5, 3)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[4].hejgtzl"
                  @change="calculateHansl('4')" @keydown.native="handleKeyDown($event, 5, 4)" :ref="'5_4'"
                  @paste.native="handlePaste($event, 5, 4)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[5].hejgtzl"
                  @change="calculateHansl('5')" @keydown.native="handleKeyDown($event, 5, 5)" :ref="'5_5'"
                  @paste.native="handlePaste($event, 5, 5)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[6].hejgtzl"
                  @change="calculateHansl('6')" @keydown.native="handleKeyDown($event, 5, 6)" :ref="'5_6'"
                  @paste.native="handlePaste($event, 5, 6)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[7].hejgtzl"
                  @change="calculateHansl('7')" @keydown.native="handleKeyDown($event, 5, 7)" :ref="'5_7'"
                  @paste.native="handlePaste($event, 5, 7)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[8].hejgtzl"
                  @change="calculateHansl('8')" @keydown.native="handleKeyDown($event, 5, 8)" :ref="'5_8'"
                  @paste.native="handlePaste($event, 5, 8)" />
              </td>
            </tr>
            <tr trindex="18">
              <td colspan="4" class="td4" rowspan="1">水分质量 (g)</td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[0].shuifzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[1].shuifzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[2].shuifzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[3].shuifzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[4].shuifzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[5].shuifzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[6].shuifzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[7].shuifzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input v-model="form.baDetailVos[8].shuifzl" disabled />
              </td>
            </tr>
            <tr trindex="19">
              <td colspan="4" class="td4" rowspan="1">干土质量 (g)</td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[0].gantzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[1].gantzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[2].gantzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[3].gantzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[4].gantzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[5].gantzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[6].gantzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[7].gantzl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[8].gantzl" disabled />
              </td>
            </tr>
            <tr trindex="20">
              <td colspan="4" class="td4" rowspan="1">含水率 (%)</td>
              <td colspan="3" class="td3">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.hanslpjz30" disabled />
              </td>
              <td colspan="3" class="td3">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.hanslpjz50" disabled />
              </td>
              <td colspan="3" class="td3">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.hanslpjz98" disabled />
              </td>
            </tr> -->

            <!--        吸水量-->
            <tr trindex="21">
              <td colspan="1" class="td1" rowspan="3">
                吸
                <br />水 <br />量
              </td>
              <td colspan="4" class="td4" rowspan="1">泡水后筒+试件质量(g)</td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[0].paoshtjsjzl"
                  @change="calculateXisl('0')" @keydown.native="handleKeyDown($event, 3, 0)" :ref="'3_0'"
                  @paste.native="handlePaste($event, 3, 0)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[1].paoshtjsjzl"
                  @change="calculateXisl('1')" @keydown.native="handleKeyDown($event, 3, 1)" :ref="'3_1'"
                  @paste.native="handlePaste($event, 3, 1)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[2].paoshtjsjzl"
                  @change="calculateXisl('2')" @keydown.native="handleKeyDown($event, 3, 2)" :ref="'3_2'"
                  @paste.native="handlePaste($event, 3, 2)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[3].paoshtjsjzl"
                  @change="calculateXisl('3')" @keydown.native="handleKeyDown($event, 3, 3)" :ref="'3_3'"
                  @paste.native="handlePaste($event, 3, 3)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[4].paoshtjsjzl"
                  @change="calculateXisl('4')" @keydown.native="handleKeyDown($event, 3, 4)" :ref="'3_4'"
                  @paste.native="handlePaste($event, 3, 4)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[5].paoshtjsjzl"
                  @change="calculateXisl('5')" @keydown.native="handleKeyDown($event, 3, 5)" :ref="'3_5'"
                  @paste.native="handlePaste($event, 3, 5)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[6].paoshtjsjzl"
                  @change="calculateXisl('6')" @keydown.native="handleKeyDown($event, 3, 6)" :ref="'3_6'"
                  @paste.native="handlePaste($event, 3, 6)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[7].paoshtjsjzl"
                  @change="calculateXisl('7')" @keydown.native="handleKeyDown($event, 3, 7)" :ref="'3_7'"
                  @paste.native="handlePaste($event, 3, 7)" />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[8].paoshtjsjzl"
                  @change="calculateXisl('8')" @keydown.native="handleKeyDown($event, 3, 8)" :ref="'3_8'"
                  @paste.native="handlePaste($event, 3, 8)" />
              </td>
            </tr>
            <tr trindex="22">
              <td colspan="4" class="td4" rowspan="1">吸水量 (g)</td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[0].xisl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[1].xisl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[2].xisl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[3].xisl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[4].xisl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[5].xisl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[6].xisl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[7].xisl" disabled />
              </td>
              <td colspan="1" class="td1">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.baDetailVos[8].xisl" disabled />
              </td>
            </tr>
            <tr trindex="23">
              <td colspan="4" class="td4" rowspan="1">吸水量平均值(g)</td>
              <td colspan="3" class="td3">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.xislpjz30" disabled />
              </td>
              <td colspan="3" class="td3">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.xislpjz50" disabled />
              </td>
              <td colspan="3" class="td3">
                <el-input :type="isPdf ? 'string' : 'number'" v-model="form.xislpjz98" disabled />
              </td>
            </tr>

            <!--        承载比-->
            <!-- <tr trindex="24">
            <td colspan="1" class="td1" rowspan="4">承<br>载<br>比</td>
            <td colspan="4" class="td4" rowspan="1">压实度 (%)</td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>
          </tr>
          <tr trindex="25">
            <td colspan="4" class="td4" rowspan="1">压实度平均值(%)</td>
            <td colspan="3" class="td3">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="3" class="td3">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="3" class="td3">
              <el-input :type="isPdf?'string':'number'" />
            </td>
          </tr>
          <tr trindex="26">
            <td colspan="4" class="td4" rowspan="1">承载比 (%) </td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="1" class="td1">
              <el-input :type="isPdf?'string':'number'" />
            </td>

          </tr>
          <tr trindex="27">
            <td colspan="4" class="td4" rowspan="1">承载比平均值(%)</td>
            <td colspan="3" class="td3">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="3" class="td3">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            <td colspan="3" class="td3">
              <el-input :type="isPdf?'string':'number'" />
            </td>
            </tr>-->
          </tbody>
        </table>
        <!-- .....................................................33333333333333333................................................... -->
        <table height="60px" class="bottom-table">
          <tr>
            <td>
              <span v-if="isPdf" class="textarea-span">{{ form.fujsm }}</span>
              <el-input v-else type="textarea" :rows="2" v-model="form.fujsm" @focus="handleFocus('fujsm')" />
            </td>
          </tr>
        </table>
      </div>
      <!-- .................................44444444444............................................. -->
      <table height="22px" class="transparent">
        <tbody>
          <tr>
            <td width="10%" align="right">检测：</td>
            <td width="15%" align="left"></td>
            <td width="10%" align="right">记录：</td>
            <td width="15%" align="left"></td>
            <td width="10%" align="right">复核：</td>
            <td align="left" width="15%"></td>
            <td width="10%">日期：</td>
            <td align="left" width="15%">
              <div style="display: inline-block; margin-left: 20px">年</div>
              <div style="display: inline-block; margin-left: 20px">月</div>
              <div style="display: inline-block; margin-left: 20px">日</div>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
    <bs-instrument-view ref="bsInstrumentViewRef" @select="selectInstrument"></bs-instrument-view>
    <ba-qj-detail-view ref="baQjDetailViewRef" :excelId="excelId" :shiyjcrq="form.shiyjcrq"
      @select="selectBaQjDetail"></ba-qj-detail-view>
    <bs-jiancyj-view ref="bsJiancyjViewRef" @select="selectJiancyj" :syType="syType"></bs-jiancyj-view>
    <bs-judge-base-view ref="bsJudgeBaseViewRef" @select="selectJudge" :syType="syType"></bs-judge-base-view>
  </div>
</template>

<script>
import { handleFocus, emptyConvert, handleKeyDown, handlePaste } from "@/views/reportForms/utils";
import { getTgTdczbjlbyBsInfo } from "@/api/report_tg/tgTdczbjlbyBsInfo";
import BsInstrumentView from "@/views/dept/bsInstrument/BsInstrumentView.vue";
import BaQjDetailView from "@/views/sycs/baQjDetail/BaQjDetailView.vue";
import BsJiancyjView from "@/views/sycs/bsJiancyj/BsJiancyjView.vue";
import BsJudgeBaseView from "@/views/sycs/bsJudgeBase/BsJudgeBaseView.vue";

import decimal from "@/utils/big-decimal";
import Bus from "@/utils/bus";
export default {
  name: "tdczbjlby",
  components: {
    BsInstrumentView,
    BaQjDetailView,
    BsJiancyjView,
    BsJudgeBaseView
  },
  props: {
    excelId: {
      type: [String, Number],
      default: () => ""
    },
    syType: {
      type: [String, Number],
      default: () => ""
    },
    page: {
      type: Number,
      default: () => 0
    },
    isPdf: {
      type: Boolean,
      default: () => false
    },
    printEmpty: {
      type: Boolean,
      default: () => false
    }
  },

  data () {
    return {
      // 表单参数
      form: {
        baDetailVos: [{}, {}, {}, {}, {}, {}, {}, {}, {}]
      }
    };
  },
  watch: {
    isPdf (newVal, oldVal) {
      this.form = { ...emptyConvert(this.form, newVal) };
    }
  },
  created () {
    this.getInfo();
  },
  mounted () {
    // 接收CBR含水率传值含水率计算干密度
    Bus.$on("cbrHanslChange", (data) => {
      const { hansl, index } = data;
      this.form.baDetailVos[index]["hansl"] = hansl;
      // 计算干密度
      this.calculateGanmd(index);
    });
  },
  beforeDestroy () {
    // 停止监听事件
    Bus.$off("cbrHanslChange");
  },

  methods: {
    // 获取详情
    getInfo () {
      getTgTdczbjlbyBsInfo(this.excelId || this.$defaultExcelId).then((response) => {
        this.form = response.data;
        if (!this.form.fujsm) {
          this.form.fujsm = "附加声明：";
        }
      });
    },
    // 显示检测依据列表
    showBsJiancyjView () {
      this.$refs.bsJiancyjViewRef.init(this.form.jiancyjIds);
    },
    // 检测依据选择
    selectJiancyj (info) {
      this.form.jiancyj = info.label;
      this.form.jiancyjIds = info.ids;
      Bus.$emit("setTgBgJiancyj", { jiancyj: this.form.jiancyj, jiancyjIds: this.form.jiancyjIds });
    },
    // 显示判定依据列表
    showBsJudgeBaseView () {
      this.$refs.bsJudgeBaseViewRef.init(this.form.pandyjIds);
    },
    // 判断依据选择
    selectJudge (info) {
      this.form.pandyjIds = info.ids;
      this.form.pandyj = info.label;
    },
    // 显示仪器列表
    showBsInstrumentView () {
      this.$refs.bsInstrumentViewRef.init(this.form.shebIds);
    },
    // 仪器选择
    selectInstrument (info) {
      this.form.zhuyyqsbmcjbh = info.label;
      this.form.shebIds = info.ids;
      Bus.$emit("setTgBgZhuyyqsbmcjbh", { zhuyyqsbmcjbh: this.form.zhuyyqsbmcjbh, shebIds: this.form.shebIds });
    },
    // 显示盒号列表
    showBaQjDetailView (type, label) {
      this.label = label;
      if (label !== "tong") {
        this.collectHehId();
      }
      this.$refs.baQjDetailViewRef.init(type, this.form.hehIdList);
    },
    // 盒号选择
    selectBaQjDetail (type, obj) {
      this.form.baDetailVos[type][this.label == "tong" ? "tongh" : "heh"] = obj.hh;
      this.form.baDetailVos[type][this.label == "tong" ? "tongzl" : "hezl"] = obj.quality;
      if (this.label != "tong") {
        this.form.baDetailVos[type]["hehId"] = obj.detailId;
      } else {
        this.form.baDetailVos[type]["tongtj"] = obj.tongrj;
      }
      this.calculateHansl(type);
    },
    // 计算膨胀量
    calculatePengzl (type) {
      if (!this.form.baDetailVos[type]["paosqsjgd"] || !this.form.baDetailVos[type]["paoshsjgd"]) {
        this.form.baDetailVos[type]["pengzl"] = "";
        this.calculateAverage(type, "pengzl", "pengzpjz");
        return;
      }
      // 膨胀量 = (泡水后试件高度-泡水前试件高度)/泡水前试件高度 * 100
      this.form.baDetailVos[type]["pengzl"] = decimal.divide(
        decimal.multiply(decimal.subtract(this.form.baDetailVos[type]["paoshsjgd"], this.form.baDetailVos[type]["paosqsjgd"]), 100),
        this.form.baDetailVos[type]["paosqsjgd"]
      );
      // 膨胀量平均值
      this.calculateAverage(type, "pengzl", "pengzpjz");
    },
    // 筒+试件质量改变
    tongjsjzlChange (type) {
      // 计算湿密度
      this.calculateShimd(type);
      // 计算吸水量
      this.calculateXisl(type);
    },
    // 计算湿密度
    calculateShimd (type) {
      if (!this.form.baDetailVos[type]["tongjsjzl"] || !this.form.baDetailVos[type]["tongzl"] || !this.form.baDetailVos[type]["tongtj"]) {
        this.form.baDetailVos[type]["shimd"] = "";
        this.calculateGanmd(type);
        return;
      }
      // 湿密度 = (筒+试件质量 - 筒质量) / 筒体积
      this.form.baDetailVos[type]["shimd"] = decimal.divide(decimal.subtract(this.form.baDetailVos[type]["tongjsjzl"], this.form.baDetailVos[type]["tongzl"]), this.form.baDetailVos[type]["tongtj"], 3);
      this.calculateGanmd(type);
    },
    // 计算干密度
    calculateGanmd (type) {
      if (!this.form.baDetailVos[type]["shimd"] || !this.form.baDetailVos[type]["hansl"]) {
        this.form.baDetailVos[type]["ganmd"] = "";
        this.calculateAverage(type, "ganmd", "ganmdpjz");
        return;
      }
      // 干密度 = (湿密度*100)/(100+含水率)
      this.form.baDetailVos[type]["ganmd"] = decimal.divide(decimal.multiply(this.form.baDetailVos[type]["shimd"], 100), decimal.add(this.form.baDetailVos[type]["hansl"], 100), 3);
      // 干密度平均值
      this.calculateAverage(type, "ganmd", "ganmdpjz");
    },
    // 计算含水率
    calculateHansl (type) {
      if (!this.form.baDetailVos[type]["hejstzl"] || !this.form.baDetailVos[type]["hejgtzl"]) {
        this.form.baDetailVos[type]["shuifzl"] = "";
        this.form.baDetailVos[type]["gantzl"] = "";
        this.form.baDetailVos[type]["hansl"] = "";
        this.calculateGanmd(type);
        this.calculateAverage(type, "hansl", "hanslpjz");
        return;
      }
      // 水分质量(g) = (盒+湿土质量(g)) -(盒+干土质量(g))
      this.form.baDetailVos[type]["shuifzl"] = decimal.subtract(this.form.baDetailVos[type]["hejstzl"], this.form.baDetailVos[type]["hejgtzl"]);
      if (!this.form.baDetailVos[type]["hezl"]) {
        this.form.baDetailVos[type]["gantzl"] = "";
        this.form.baDetailVos[type]["hansl"] = "";
        this.calculateGanmd(type);
        this.calculateAverage(type, "hansl", "hanslpjz");
        return;
      }
      // 干土质量（g） = (盒+干土质量(g)) -(盒质量(g))
      this.form.baDetailVos[type]["gantzl"] = decimal.subtract(this.form.baDetailVos[type]["hejgtzl"], this.form.baDetailVos[type]["hezl"]);
      // 含水率(%) = (水分质量(g)) -(干土质量（g）) * 100%
      this.form.baDetailVos[type]["hansl"] = decimal.divide(decimal.multiply(this.form.baDetailVos[type]["shuifzl"], 100), this.form.baDetailVos[type]["gantzl"], 1);
      // 计算干密度
      this.calculateGanmd(type);
      // 平均含水率
      this.calculateAverage(type, "hansl", "hanslpjz");
    },
    // 计算吸水量
    calculateXisl (type) {
      if (!this.form.baDetailVos[type]["paoshtjsjzl"] || !this.form.baDetailVos[type]["tongjsjzl"]) {
        this.form.baDetailVos[type]["xisl"] = "";
        this.calculateAverage(type, "xisl", "xislpjz");
        return;
      }
      // 吸水量 = （泡水后筒+试件质量(g)） - （筒+试件质量）
      this.form.baDetailVos[type]["xisl"] = decimal.subtract(this.form.baDetailVos[type]["paoshtjsjzl"], this.form.baDetailVos[type]["tongjsjzl"], 0);
      // 吸水量平均值
      this.calculateAverage(type, "xisl", "xislpjz");
    },
    // 计算平均值
    calculateAverage (count, type, averageType) {
      const str = decimal.round((Number(count) + 1) / 3, 0, "CEILING");
      if (str == 0) {
        return;
      }
      let str2 = 30;
      switch (Number(str)) {
        case 1:
          str2 = 30;
          break;
        case 2:
          str2 = 50;
          break;
        case 3:
          str2 = 98;
          break;
      }
      for (let i = 3; i >= 1; i--) {
        if (!this.form.baDetailVos[str * 3 - i][type]) {
          this.form[averageType + str2] = "";
          return;
        }
      }
      // 保留位数 含水率1 吸水量0
      let digit = 2;
      if (type == "hansl") {
        digit = 1;
      } else if (type == "xisl") {
        digit = 0;
      }
      let sum = 0;
      for (let i = 1; i <= 3; i++) {
        sum = decimal.add(sum, this.form.baDetailVos[str * 3 - i][type]);
      }
      this.form[averageType + str2] = decimal.divide(sum, 3, digit);
      if (averageType == "ganmdpjz" && this.form.ganmdpjz30 && this.form.ganmdpjz50 && this.form.ganmdpjz98) {
        Bus.$emit("ganmdpjzChange", { ganmd1: this.form.ganmdpjz30, ganmd2: this.form.ganmdpjz50, ganmd3: this.form.ganmdpjz98 });
      }
    },
    // 汇总盒号
    collectHehId () {
      const arr = ["0", "1", "2", "3", "4", "5", "6", "7", "8"];
      let hehIdList = [];
      arr.forEach((item) => {
        if (this.form.baDetailVos[item]["hehId"]) {
          hehIdList.push(this.form.baDetailVos[item]["hehId"]);
        }
      });
      this.form.hehIdList = hehIdList;
    },
    submitForm () {
      this.collectHehId();
      return this.form;
    },
    handleFocus (event) {
      handleFocus(event, this.page, this.form[event]);
    },
    handleKeyDown (event, rowIndex, colIndex) {
      const maxArr = [8, 8, 8, 8]; // 每一行最多有多少可聚焦输入框（从0开始）
      const ref = handleKeyDown(event, rowIndex, colIndex, maxArr);
      if (this.$refs[ref]) {
        this.$refs[ref].focus();
      }
    },
    handlePaste (event, rowIndex, colIndex) {
      const nameAllArr = [
        ["paosqsjgd", "paosqsjgd", "paosqsjgd", "paosqsjgd", "paosqsjgd", "paosqsjgd", "paosqsjgd", "paosqsjgd", "paosqsjgd"],
        ["paoshsjgd", "paoshsjgd", "paoshsjgd", "paoshsjgd", "paoshsjgd", "paoshsjgd", "paoshsjgd", "paoshsjgd", "paoshsjgd"],
        ["tongjsjzl", "tongjsjzl", "tongjsjzl", "tongjsjzl", "tongjsjzl", "tongjsjzl", "tongjsjzl", "tongjsjzl", "tongjsjzl"],
        // ["hezl", "hezl", "hezl", "hezl", "hezl", "hezl", "hezl", "hezl", "hezl"],
        // ["hejstzl", "hejstzl", "hejstzl", "hejstzl", "hejstzl", "hejstzl", "hejstzl", "hejstzl", "hejstzl"],
        // ["hejgtzl", "hejgtzl", "hejgtzl", "hejgtzl", "hejgtzl", "hejgtzl", "hejgtzl", "hejgtzl", "hejgtzl"],
        ["paoshtjsjzl", "paoshtjsjzl", "paoshtjsjzl", "paoshtjsjzl", "paoshtjsjzl", "paoshtjsjzl", "paoshtjsjzl", "paoshtjsjzl", "paoshtjsjzl"]
      ];
      const methodsAllArr = [
        ["calculatePengzl", "calculatePengzl", "calculatePengzl", "calculatePengzl", "calculatePengzl", "calculatePengzl", "calculatePengzl", "calculatePengzl", "calculatePengzl"],
        ["calculatePengzl", "calculatePengzl", "calculatePengzl", "calculatePengzl", "calculatePengzl", "calculatePengzl", "calculatePengzl", "calculatePengzl", "calculatePengzl"],
        ["tongjsjzlChange", "tongjsjzlChange", "tongjsjzlChange", "tongjsjzlChange", "tongjsjzlChange", "tongjsjzlChange", "tongjsjzlChange", "tongjsjzlChange", "tongjsjzlChange"],
        // [null, null, null, null, null, null, null, null, null],
        // ["calculateHansl", "calculateHansl", "calculateHansl", "calculateHansl", "calculateHansl", "calculateHansl", "calculateHansl", "calculateHansl", "calculateHansl"],
        // ["calculateHansl", "calculateHansl", "calculateHansl", "calculateHansl", "calculateHansl", "calculateHansl", "calculateHansl", "calculateHansl", "calculateHansl"],
        ["calculateXisl", "calculateXisl", "calculateXisl", "calculateXisl", "calculateXisl", "calculateXisl", "calculateXisl", "calculateXisl", "calculateXisl"]
      ];
      const parameterArr = [
        ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
        ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
        ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
        // [null, null, null, null, null, null, null, null, null],
        // ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
        // ["0", "1", "2", "3", "4", "5", "6", "7", "8"],
        ["0", "1", "2", "3", "4", "5", "6", "7", "8"]
      ];
      const subscriptArr = [
        [0, 1, 2, 3, 4, 5, 6, 7, 8],
        [0, 1, 2, 3, 4, 5, 6, 7, 8],
        [0, 1, 2, 3, 4, 5, 6, 7, 8],
        // [0, 1, 2, 3, 4, 5, 6, 7, 8],
        // [0, 1, 2, 3, 4, 5, 6, 7, 8],
        // [0, 1, 2, 3, 4, 5, 6, 7, 8],
        [0, 1, 2, 3, 4, 5, 6, 7, 8]
      ];
      const data = handlePaste(event, rowIndex, colIndex, nameAllArr, methodsAllArr, parameterArr, subscriptArr);
      const { cols, nameSetArr, methodsSetArr, parameterSetArr, subscriptSetArr } = data;

      for (let a = 0; a < nameSetArr.length; a++) {
        for (let b = 0; b < nameSetArr[a].length; b++) {
          this.form.baDetailVos[subscriptSetArr[a][b]][nameSetArr[a][b]] = cols[a][b];
        }
      }
      for (let a = 0; a < methodsSetArr.length; a++) {
        for (let b = 0; b < methodsSetArr[a].length; b++) {
          if (methodsSetArr[a][b] == null) {
          } else {
            this.setCalculate(methodsSetArr[a][b], parameterSetArr[a][b]);
          }
        }
      }
    },
    // 计算方法调用
    setCalculate (name, a, b, c, d, e) {
      this[name](a, b, c, d, e);
    }
  }
};
</script>

<style scoped>
.td1 {
  width: calc(100% / 14 * 1);
}

.td2 {
  width: calc(100% / 14 * 2);
}

.td3 {
  width: calc(100% / 14 * 3);
}

.td4 {
  width: calc(100% / 14 * 4);
}

.td5 {
  width: calc(100% / 14 * 5);
}
</style>
